package com.lee.mysql.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@ApiModel(description="用户角色关系表")
public class UserRole implements Serializable {
   private static final long serialVersionUID = 1L;

    /** 用户主键 */
    @ApiModelProperty(name="用户主键",value="用户主键")
    private String userId;
    
    /** 角色主键 */
    @ApiModelProperty(name="角色主键",value="角色主键")
    private String roleId;
    


    /**
     * 用户主键
     * @return the value of user_role.user_id
     */
    public String getUserId() {
        return userId;
    }
    
     /**
     * 用户主键
     * @param userId the value for user_role.user_id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    /**
     * 角色主键
     * @return the value of user_role.role_id
     */
    public String getRoleId() {
        return roleId;
    }
    
     /**
     * 角色主键
     * @param roleId the value for user_role.role_id
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
    


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
           sb.append(", userId=").append(userId);
           sb.append(", roleId=").append(roleId);
        sb.append("]");
        return sb.toString();
    }

}